package com.group4.rbac.exception;

import com.study.util.ResponseResult;
import io.jsonwebtoken.ClaimJwtException;
import io.jsonwebtoken.ExpiredJwtException;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionHandler {
    /**
     * @return
     *
     */
    //ExceptionHandler指定需要处理异常的范围或异常类
    @org.springframework.web.bind.annotation.ExceptionHandler(ClaimJwtException.class)
    public ResponseResult<Void> handlerException() {
        return new ResponseResult(500,"jwt过期校验失败");
    }
}
